<?php

namespace Home\Controller;

use Common\Controller\HomeBaseController;

class ShopController extends HomeBaseController {
	function _initialize() {
		parent::_initialize ();
		

		 $this->assign ( "nav", "home" );
		
	}
	public function index() {


		
		$list=D("Shop")->order("listorder desc , id desc")->select();






		$this->assign ( "_list", $list );

		$this->assign ( "seo_title", "线下体验店" );
		$this->display ( "" );
	}



	public  function  show(){

		$id=I('get.id');
		$data=D("Shop")->find($id);

		$q_uid=D("Fenxiao")->find($data["j_id"]);

		$this->assign ( "seo_title", $data["title"] );
		$this->assign ( "_data", $data );
		$this->assign ( "q_uid", $q_uid["u_id"] );
		$this->display ( "" );
	}

 

}